home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1993 July / InfoMagic USENET CD-ROM July 1993.ISO / sources / x / volume13 / kterm / patch3 < prev    next >
Encoding:
Text File  |  1991-07-05  |  6.3 KB  |  217 lines

  1. Path: uunet!cs.utexas.edu!convex!texsun!cronkite!exodus!NMSU.Edu!mleisher
  2. From: mleisher@NMSU.Edu
  3. Newsgroups: comp.sources.x
  4. Subject: v13i075: kterm, Patch3, Part01/01
  5. Message-ID: <16339@exodus.Eng.Sun.COM>
  6. Date: 6 Jul 91 07:11:32 GMT
  7. References: <csx-13i075-kterm@uunet.UU.NET>
  8. Sender: news@exodus.Eng.Sun.COM
  9. Lines: 205
  10. Approved: argv@sun.com
  11.  
  12. Submitted-by: mleisher@NMSU.Edu
  13. Posting-number: Volume 13, Issue 75
  14. Archive-name: kterm/patch3
  15. Patch-To: kterm: Volume 12, Issue 82-89
  16. Patch-To: kterm: Volume 13, Issue 40 (patch 1 5/25/91)
  17. Patch-To: kterm: Volume 13, Issue 41 (patch 2 5/30/91)
  18.  
  19. Here is patch 3 for kterm 4.1.2 which bring kterm to patchlevel 9.
  20.  
  21. Fixes:
  22.  
  23.   o  Incorrect terminfo file entries fixed
  24.  
  25.   o  New terminfo file puts special/line drawing characters in G3
  26.      instead of G1 to avoid conflict with Hangul/Hanzi/Kanji in G1.
  27.  
  28. Updates:
  29.  
  30.   o  Iris-4D, Irix 3.3.2 support added
  31.  
  32.   o  The LPASS8 flag is now set by default
  33.  
  34.   o  README file updated a little
  35.  
  36. Thanks go to Rick Stevenson of Pyramid Technology Corp for supplying
  37. the fixes to the terminfo file, and to Kevin Dalley of TAMRI for
  38. supplying the Iris patches.
  39.  
  40. -------------------- Cut here ---------------------------
  41. *** README.ORIG    Sun Jun 23 22:24:11 1991
  42. --- README    Sun Jun 23 23:19:27 1991
  43. ***************
  44. *** 42,48 ****
  45.            where the Traditional Chinese ideographs are used.
  46.            NOTE: Rumor has it that it is, or will be a standard in
  47.                  Taiwan.  I don't have any facts on this yet.
  48. !          CODE RANGE: 0xA140-0xF9FE
  49.   
  50.      2. Japanese
  51.   
  52. --- 42,48 ----
  53.            where the Traditional Chinese ideographs are used.
  54.            NOTE: Rumor has it that it is, or will be a standard in
  55.                  Taiwan.  I don't have any facts on this yet.
  56. !          CODE RANGE: 0xA140-0xF9FE (excluding 0x7F to 0x9F as byte2)
  57.   
  58.      2. Japanese
  59.   
  60. ***************
  61. *** 190,196 ****
  62.   
  63.     Martin Walter from University of Freiburg
  64.   
  65. !                 Sun May 26 23:09:44 1991
  66.   
  67.                   Internet: mleisher@nmsu.edu
  68.                   Bitnet  : mleisher@nmsu.bitnet
  69. --- 190,200 ----
  70.   
  71.     Martin Walter from University of Freiburg
  72.   
  73. !   Kevin Dalley at TAMRI
  74. !   Rick Stevenson at Pyramid Technology Corp.
  75. !                 Sun Jun 23 23:19:19 1991
  76.   
  77.                   Internet: mleisher@nmsu.edu
  78.                   Bitnet  : mleisher@nmsu.bitnet
  79. *** main.c.ORIG    Wed Jun 19 13:16:10 1991
  80. --- main.c    Sun Jun 23 22:23:21 1991
  81. ***************
  82. *** 283,292 ****
  83. --- 283,294 ----
  84.   };
  85.   
  86.   #ifdef USE_SYSV_UTMP
  87. + #ifndef sgi /* SGI utmp.h has ANSI prototypes on these */
  88.   extern struct utmp *getutent();
  89.   extern struct utmp *getutid();
  90.   extern struct utmp *getutline();
  91.   extern void pututline();
  92. + #endif /* !sgi */
  93.   extern void setutent();
  94.   extern void endutent();
  95.   extern void utmpname();
  96. ***************
  97. *** 662,668 ****
  98.   static void Version ()
  99.   {
  100.       fprintf (stderr, "kterm: version %s (patchlevel %d)\n", KTERM_VERSION,
  101. !              patchlevel);
  102.       fprintf (stderr, "       with");
  103.   #ifdef KTERM_KANJI
  104.       fprintf (stderr, " [KTERM_KANJI]");
  105. --- 664,670 ----
  106.   static void Version ()
  107.   {
  108.       fprintf (stderr, "kterm: version %s (patchlevel %d)\n", KTERM_VERSION,
  109. !              PATCHLEVEL);
  110.       fprintf (stderr, "       with");
  111.   #ifdef KTERM_KANJI
  112.       fprintf (stderr, " [KTERM_KANJI]");
  113. ***************
  114. *** 1178,1183 ****
  115. --- 1180,1201 ----
  116.       /* got one! */
  117.       return(0);
  118.   #else /* not (umips && SYSTYPE_SYSV) */
  119. + #ifdef sgi
  120. +     /* adapted from the preceding umips/SYSV version.  But removed unused
  121. +        open of slave tty.  It does not seem to be necessary.  -jlh */
  122. + #    define     minor(x)        ((int)((x)&0377)) /* from MIPS sys/types.h */
  123. +     struct stat fstat_buf;
  124. +     *pty = open ("/dev/ptc", O_RDWR);
  125. +     if (*pty < 0 || (fstat (*pty, &fstat_buf)) < 0) {
  126. +       return(1);
  127. +     }
  128. +     sprintf (ttydev, "/dev/ttyq%d", minor(fstat_buf.st_rdev));
  129. +     sprintf (ptydev, "/dev/ptyq%d", minor(fstat_buf.st_rdev));
  130. +     /* got one! */
  131. +     return(0);
  132. + #else /* not sgi */
  133.   #ifdef CRAY
  134.       for (; devindex < 256; devindex++) {
  135.           sprintf (ttydev, "/dev/ttyp%03d", devindex);
  136. ***************
  137. *** 1216,1221 ****
  138. --- 1234,1240 ----
  139.        * condition and let our caller terminate cleanly.
  140.        */
  141.       return(1);
  142. + #endif /* sgi */
  143.   #endif /* umips && SYSTYPE_SYSV */
  144.   #endif /* att */
  145.   }
  146. ***************
  147. *** 1762,1767 ****
  148. --- 1781,1789 ----
  149.       { 
  150.   #include <grp.h>
  151.           struct group *ttygrp;
  152. + #ifdef sgi
  153. +         struct group *getgrnam();
  154. + #endif
  155.           if (ttygrp = getgrnam("tty")) {
  156.               /* change ownership of tty to real uid, "tty" gid */
  157.               chown (ttydev, screen->uid, ttygrp->gr_gid);
  158. ***************
  159. *** 1898,1903 ****
  160. --- 1920,1929 ----
  161.               }
  162.   #undef TMODE
  163.   
  164. + #ifndef LPASS8
  165. + #define LPASS8 0
  166. + #endif /* LPASS8 */
  167. +                     lmode |= LPASS8;
  168.               if (ioctl (tty, TIOCSETP, (char *)&sg) == -1)
  169.                   HsSysError (cp_pipe[1], ERROR_TIOCSETP);
  170.               if (ioctl (tty, TIOCSETC, (char *)&tc) == -1)
  171. *** patchlevel.h.ORIG    Sun Jun 23 22:18:01 1991
  172. --- patchlevel.h    Sun Jun 23 22:18:16 1991
  173. ***************
  174. *** 1 ****
  175. ! #define patchlevel 8
  176. --- 1 ----
  177. ! #define PATCHLEVEL 9
  178. *** terminfo.kt.ORIG    Sun Jun 23 22:35:44 1991
  179. --- terminfo.kt    Sun Jun 23 22:41:59 1991
  180. ***************
  181. *** 1,4 ****
  182.   kterm|kterm hangul hanzi kanji terminal emulator (X window system),
  183. !     hs, eslok, tsl=\E[?%i%dT, fs=\E[?F, ds=\E[?H,
  184.       sc=\E7, rc=\E8, csr=\E[%i%p1%d;%p2%dr,
  185.       use=xterm,
  186. --- 1,14 ----
  187. + #
  188. + # Kterm terminfo description
  189. + #
  190. + # Differences from xterm:
  191. + #  - use G3 for special and line drawing character set
  192. + #    (xterm uses G1, but kterm needs G1 for Kanji/Hangul/Hanzi)
  193. + #  - provide status line information
  194. + #
  195.   kterm|kterm hangul hanzi kanji terminal emulator (X window system),
  196. !     enacs=\E(B\E+0, smacs=\Eo,
  197. !     sgr=\E[0%?%p1%p6%|%t;1%;%?%p2%t;4%;%?%p1%p3%|%t;7%;%?%p4%t;5%;m%?%p9%t\Eo%e^O%;,
  198. !     hs, eslok, tsl=\E[?%i%dT, fsl=\E[?F, dsl=\E[?H,
  199.       sc=\E7, rc=\E8, csr=\E[%i%p1%d;%p2%dr,
  200.       use=xterm,
  201. -----------------------------------------------------------------------------
  202. mleisher@nmsu.edu                      "I laughed.
  203. Mark Leisher                                I cried.
  204. Computing Research Lab                          I fell down.
  205. New Mexico State University                        It changed my life."
  206. Las Cruces, NM                     - Rich [Cowboy Feng's Space Bar and Grille]
  207.  
  208. --
  209. Dan Heller
  210. O'Reilly && Associates       Z-Code Software    Comp-sources-x:
  211. Senior Writer                President          comp-sources-x@uunet.uu.net
  212. argv@ora.com                 argv@zipcode.com
  213.